package com.spirngcloud.alibabasentinelratelimiting.controller.mq.util;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version V1.0
 * @Author 宋聚智
 * @Date 2019/10/23 21:22
 * @description
 * @Modify By：
 * @ModifyTime： 2019/10/23
 * @Modify marker：
 **/
@Configuration
public class QueueConfiguration {
    @Bean(name="myFirstQueue")
    public Queue getFirstQueue(){
        return new Queue("My-First-Queue");
    }

    @Bean(name="myTwoQueue")
    public Queue getTwoQueue(){
        return new Queue("My-Two-Queue");
    }
    @Bean(name="myThreeQueue")
    public Queue getThreeQueue(){
        return new Queue("My-Three-Queue");
    }
}
